package cn.yx.permission.mapper;

import cn.yx.common.mybatis.mapper.BasePlusMapper;
import cn.yx.permission.cond.RoleUserCond;
import cn.yx.permission.dos.RoleUserDo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>RoleUserMapper数据访问类</p>
 *
 * @author Wgssmart
 */
@Repository
public interface RoleUserMapper extends BasePlusMapper<RoleUserDo, RoleUserCond, Long> {

    /**
     * 根据用户ID查询出用户对应的所有角色权限
     *
     * @param userId 用户ID
     * @return
     */
    List<String> selectRolesByUserId(Long userId);

}
